package com.itheima.demo.api.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itheima.demo.api.SkuApi;
import com.itheima.demo.mapper.SkuMapper;
import com.itheima.demo.pojo.Sku;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SkuApiImpl implements SkuApi {

    @Autowired
    private SkuMapper skuMapper;

    @Override
    public List<Sku> findAll() {

        QueryWrapper<Sku> queryWrapper = new QueryWrapper<>();
        return skuMapper.selectList(queryWrapper);
    }
}
